#include"CRectangle.h"
int main(){
	CRectangle recta;
	recta.setVaLues(3, 4);
	CRectangle *rectb;
	rectb = &recta;
	rectb->setVaLues(3,9);
	cout << " area: " << recta.area();
	cout << "\n area: " << rectb->area();
	CRectangle *rectc = new CRectangle();
	rectc->setVaLues(5, 6);
	rectb = rectc;
	rectc->setVaLues(7, 8);
	cout << "\n area: " << rectb->area();
	cout << "\n area: " << rectc->area();
	delete rectb;
	// co the delete rectc
	_getch();
	return 0;


}